<script type='text/javascript'>//<![CDATA[
$(function() {
		var $tab_title_input = $( "#tab_title"),
			$tab_content_input = $( "#tab_content" );
		var tab_counter = 2;

		// tabs init with a custom tab template and an "add" callback filling in the content
		var $tabs = $( "#tabs").tabs({
			tabTemplate: "<li><a href='#{href}'>#{label}</a> <span class='ui-icon ui-icon-close'>Hapus Tab</span></li>",
			add: function( event, ui ) {
				var tab_content = $tab_content_input.val() || "Tab " + tab_counter + " content.";
				$( ui.panel ).append( "<p>" + tab_content + "</p>" );
			}
		});

		// modal dialog init: custom buttons and a "close" callback reseting the form inside
		var $dialog = $( "#dialog" ).dialog({
			autoOpen: false,
			modal: true,
			buttons: {
				Tambah: function() {
					addTab();
					$( this ).dialog( "close" );
				},
				Batal: function() {
					$( this ).dialog( "close" );
				}
			},
			open: function() {
				$tab_title_input.focus();
			},
			close: function() {
				$form[ 0 ].reset();
			}
		});

		// addTab form: calls addTab function on submit and closes the dialog
		var $form = $( "form", $dialog ).submit(function() {
			addTab();
			$dialog.dialog( "close" );
			return false;
		});

		// actual addTab function: adds new tab using the title input from the form above
		function addTab() {
			var tab_title = $tab_title_input.val() || "Tab " + tab_counter;
			$tabs.tabs( "add", "#tabs-" + tab_counter, tab_title );
			tab_counter++;
		}

		// addTab button: just opens the dialog
		$( "#add_tab" )
			.button()
			.click(function() {
				$dialog.dialog( "open" );
			});

		// close icon: removing the tab on click
		// note: closable tabs gonna be an option in the future - see http://dev.jqueryui.com/ticket/3924
		$( "#tabs span.ui-icon-close" ).live( "click", function() {
			var index = $( "li", $tabs ).index( $( this ).parent() );
			$tabs.tabs( "remove", index );
		});
	});
//]]></script>
<script>
	$(function() {
		$( &quot;#datepicker&quot; ).datepicker();
	});
	</script>
	<script>
	// increase the default animation speed to exaggerate the effect
	$.fx.speeds._default = 500;
	$(function() {
		$( &quot;#java-dialog&quot; ).dialog({
			autoOpen: false,
			show: &quot;bounce&quot;,
			hide: &quot;explode&quot;
		});

		$( &quot;#java-open&quot; ).click(function() {
			$( &quot;#java-dialog&quot; ).dialog( &quot;open&quot; );
			return false;
		});
	});
</script>


 <script>
      document.createElement(&#39;header&#39;);
      document.createElement(&#39;nav&#39;);
    </script>
<meta content='' name='WT.ad'/>
<meta content='' name='WT.si_n'/>
    <meta content='' name='WT.si_x'/>
    <meta content='' name='WT.si_cs'/>
<script>
window.webtrendsAsyncInit=function(){
    var dcs=new Webtrends.dcs().init({
        dcsid:&quot;dcsu1to8wvz5bd8f6if7d3qse_2j4x&quot;
        ,domain:&quot;http://java-infinite.blogspot.com/&quot;
        ,timezone:10
        ,offsite:true
        ,download:true
        ,downloadtypes:&quot;xls,doc,pdf,txt,csv,zip,docx,xlsx,rar,gzip&quot;
        ,onsitedoms:&quot;codecanyon.net&quot;
        ,plugins:{
            hm:{src:&quot;//s.webtrends.com/js/webtrends.hm.js&quot;}
        }
        }).track();
};
(function(){
    var s=document.createElement(&quot;script&quot;); s.async=true; s.src=&quot;http://0.envato-static.com/javascripts/webtrends.min.js&quot;;
    var s2=document.getElementsByTagName(&quot;script&quot;)[0]; s2.parentNode.insertBefore(s,s2);
}());
</script>
<script>
      marketplace.headerStrip = function(cookieName, strip) {
        var $strip = $(strip),
            cookie = $.cookie(cookieName);
          
        if (cookie !== &quot;hidden&quot;) {
          $strip.removeClass(&quot;hidden&quot;)
                .find(&quot;.header-strip-close&quot;)
                .on(&quot;click&quot;, function(e) {
                  e.preventDefault();
                  $strip.slideUp(400);
                  $.cookie(cookieName, &quot;hidden&quot;, { path: &quot;/&quot;, expires: 10 });
          });
        }
      };
    </script>
   <script>marketplace.headerStrip(&#39;banner_#{ banner_partial_to_display }&#39;, &#39;.header-strip&#39;);</script>
  <script>marketplace.initializers.global();</script>

